<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">











<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <title>Maven Gettext Plugin - Usage</title>
    <style type="text/css" media="all">
      @import url("./css/maven-base.css");
      @import url("./css/maven-theme.css");
      @import url("./css/site.css");
    </style>
    <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
          <meta name="author" content="Steffen Pingel" />
        <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
      </head>
  <body class="composite">
    <div id="banner">
                  <a href="http://sourceforge.net" id="bannerLeft">
    
                                    <img src="http://sourceforge.net/sflogo.php?group_id=121150&type=1" alt="" />
    
            </a>
                        <a href="http://code.google.com/p/gettext-commons/" id="bannerRight">
    
            Maven Gettext Plugin
    
            </a>
            <div class="clear">
        <hr/>
      </div>
    </div>
    <div id="breadcrumbs">
          
  

  
    
  
  
    
            <div class="xleft">
        Last Published: 2010-08-26
                      </div>
            <div class="xright">      
  

  
    
  
  
    
  </div>
      <div class="clear">
        <hr/>
      </div>
    </div>
    <div id="leftColumn">
      <div id="navcolumn">
           
  

  
    
  
  
    
                   <h5>Overview</h5>
            <ul>
              
    <li class="none">
              <strong>Usage</strong>
        </li>
          </ul>
              <h5>Project Documentation</h5>
            <ul>
              
                
              
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
            
      
              
        <li class="collapsed">
                    <a href="project-info.html">Project Information</a>
                </li>
              
                
              
      
            
      
              
        <li class="collapsed">
                    <a href="project-reports.html">Project Reports</a>
                </li>
          </ul>
                                           <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
            <img alt="Built by Maven" src="./images/logos/maven-feather.png"></img>
          </a>
                       
  

  
    
  
  
    
        </div>
    </div>
    <div id="bodyColumn">
      <div id="contentBox">
        <div class="section"><h2>Usage</h2>
<p>This plugin is used to generate Gettext PO files.</p>
<div class="section"><h3>How to use the plugin</h3>
<p>Update pot and po files: </p>
<div class="source"><pre>mvn org.xnap.commons:maven-gettext-plugin:merge</pre>
</div>
<p>Create properties/classs files: </p>
<div class="source"><pre>mvn org.xnap.commons:maven-gettext-plugin:1.0:dist</pre>
</div>
</div>
<div class="section"><h3>How to Generate the Gettext Report</h3>
<div class="source"><pre>  &lt;pluginRepositories&gt;
    &lt;pluginRepository&gt;
      &lt;id&gt;xnap-commons&lt;/id&gt;
      &lt;name&gt;XNap Commons Repository&lt;/name&gt;
      &lt;url&gt;http://xnap-commons.sourceforge.net/repository&lt;/url&gt;
    &lt;/pluginRepository&gt;
  &lt;/pluginRepositories&gt;

...

  &lt;reporting&gt;
    &lt;plugins&gt;
      &lt;plugin&gt;
        &lt;groupId&gt;org.xnap.commons&lt;/groupId&gt;
        &lt;artifactId&gt;maven-gettext-plugin&lt;/artifactId&gt;
        &lt;version&gt;1.1&lt;/version&gt;
        &lt;configuration&gt;
          &lt;targetBundle&gt;my.package.Messages&lt;/targetBundle&gt;
          &lt;outputFormat&gt;properties&lt;/outputFormat&gt;
        &lt;/configuration&gt;
      &lt;/plugin&gt;
    &lt;/plugins&gt;
  &lt;/reporting&gt;</pre>
</div>
</div>
</div>

      </div>
    </div>
    <div class="clear">
      <hr/>
    </div>
    <div id="footer">
      <div class="xright">&#169;  
          2010
    
          
  

  
    
  
  
    
  </div>
      <div class="clear">
        <hr/>
      </div>
    </div>
  </body>
</html>
